package com.Fate.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class User {
    /**
     * 用户ID
     */
    private Integer id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 真实名字
     */
    private String realname;
    /**
     *角色 1管理员 2业务员
     */
    private Integer role;
    /**
     * 状态 1 在职 离职
     */
    private Integer deleted;
    /**
     * 用户头像
     */
    private String img;
    /**
     * 用户创建时间
     */
    @JSONField(format="yyyy-MM-md")
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifyTime;
    /**
     * 删除时间
     */
    @JSONField(format = "yyyy-MM-md")
    private Date deletedTime;

    public Integer getDeleted() {
        return deleted;
    }

    public User setDeleted(Integer deleted) {
        this.deleted = deleted;
        return this;
    }

    public Integer getId() {
        return id;
    }

    public User setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public User setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getRealname() {
        return realname;
    }

    public User setRealname(String realname) {
        this.realname = realname;
        return this;
    }

    public Integer getRole() {
        return role;
    }

    public User setRole(Integer role) {
        this.role = role;
        return this;
    }

    public String getImg() {
        return img;
    }

    public User setImg(String img) {
        this.img = img;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public User setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public User setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
        return this;
    }

    public Date getDeletedTime() {
        return deletedTime;
    }

    public User setDeletedTime(Date deletedTime) {
        this.deletedTime = deletedTime;
        return this;
    }

    public User() {
    }
}

